package com.no1.musicmgr.controller;

import com.no1.musicmgr.service.MusicAnalysisService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author 17739
 */
@RestController
@Log4j
@Tag(name="MusicAnalysisController",description = "音乐数据分析模块")
public class MusicAnalysisController {
    @Autowired
    private MusicAnalysisService musicAnalysisService;
    @GetMapping("/music/analysis")
    public HashMap<String, Object> getMusicAnalysisData()
    {
        return musicAnalysisService.getUserAnalysisData();
    }
}
